﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Model.Admin
{
    public class RoomCrudViewModel
    {
        [Required(ErrorMessage = "Potrebno je unijeti grupu.")]
        public int? RoomGroup { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti oznaku.")]
        public string Mark { get; set; }

        public List<Type> Types { get; set; }

        public int SelectedType { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti naziv.")]
        public string Name { get; set; }

        [Required(ErrorMessage = "Potrebno je unijeti površinu.")]
        public double? Area { get; set; }

        public IList<RoomViewModel> Rooms { get; set; }
    }
}
